myApp.config(['$urlRouterProvider', '$stateProvider', function ($urlRouterProvider, $stateProvider) {
    //$locationProvider.html5Mode(true);
    $urlRouterProvider.otherwise("app/main");
    $stateProvider
        .state("app", {
            // abstract: true 表明此状态不能被显性激活，只能被子状态隐性激活
            abstract: true,
            url: "/app",
            templateUrl: commonPath + "/tpl/app.html"
        })
        .state("app.main", {
            url: "/main",
            templateUrl: commonPath + "/tpl/main.html"
        })
    ;
}]);